__PHONE_CALLBACK = {}

$.extend({

	phone : function(url, data, callback){
		 if ( jQuery.isFunction( data ) ) {
			callback = data;
			data = undefined;
		}

		if(callback){
			var __callback = data['__callback'] = (""+ Math.random()).slice(2)+$.now();
			__PHONE_CALLBACK[__callback] = function(response){
				callback(response)
				delete __PHONE_CALLBACK[__callback];
			}
		}
		
		document.location = "$://"+url+'?'+JSON.stringify(data);  
	   
	   }

})

